home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 2004 Junue - Disc 1 / MacFormat 143 CD1.iso / Revolution 2.0.1 demo / Revolution 2.0.1.sit / Revolution 2.0.1 / Sample Stacks / wsdl / GCD.wsdl < prev    next >
Extensible Markup Language  |  2003-05-21  |  4KB  |  62 lines

  1. <?xml version="1.0"?><wsdl:definitions name="xmethods_gcd" xmlns:tns="http://bowstreet.com/2002/03/models/xmethods/gcd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://bowstreet.com/2002/03/models/xmethods/gcd" xmlns:xsd1="http://www.bowstreet.com/02/2002/gcd"><wsdl:types><schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.bowstreet.com/02/2002/gcd" targetNamespace="http://www.bowstreet.com/02/2002/gcd"><element name="gcd" type="tns:gcd" />
  2. <element name="gcdreply" type="tns:gcdreply" />
  3. <complexType name="gcd"><sequence><element name="point1" type="tns:point" />
  4. <element name="point2" type="tns:point" />
  5. </sequence>
  6. </complexType>
  7. <complexType name="point"><sequence><element name="latitude" type="double" />
  8. <element name="longitude" type="double" />
  9. </sequence>
  10. </complexType>
  11. <complexType name="gcdreply"><sequence><element name="distance" type="double" />
  12. <element name="error" type="string" />
  13. </sequence>
  14. </complexType>
  15. </schema>
  16. </wsdl:types>
  17. <wsdl:message name="gcdDoublesResponse"><wsdl:part name="return" type="xsd:double"><wsdl:documentation>A double - the distance between the 2 points passed in.</wsdl:documentation>
  18. </wsdl:part>
  19. </wsdl:message>
  20. <wsdl:message name="gcdDoublesRequest"><wsdl:part name="lat1" type="xsd:double"><wsdl:documentation>latitude of first point</wsdl:documentation>
  21. </wsdl:part>
  22. <wsdl:part name="long1" type="xsd:double"><wsdl:documentation>longitude of first point</wsdl:documentation>
  23. </wsdl:part>
  24. <wsdl:part name="lat2" type="xsd:double"><wsdl:documentation>latitude of second point</wsdl:documentation>
  25. </wsdl:part>
  26. <wsdl:part name="long2" type="xsd:double"><wsdl:documentation>longitude of second point</wsdl:documentation>
  27. </wsdl:part>
  28. </wsdl:message>
  29. <wsdl:message name="gcdXmlResponse"><wsdl:part name="gcdreply" type="xsd1:gcdreply"><wsdl:documentation>An XML object holding the distance between the two points.</wsdl:documentation>
  30. </wsdl:part>
  31. </wsdl:message>
  32. <wsdl:message name="gcdXmlRequest"><wsdl:part name="locations" type="xsd1:gcd"><wsdl:documentation>An XML object holding the latitude and longitude of the two points to be measured.</wsdl:documentation>
  33. </wsdl:part>
  34. </wsdl:message>
  35. <wsdl:portType name="gcdPortType"><wsdl:operation name="gcdDoubles"><wsdl:documentation>Takes four doubles describing the longitude and latitude of two points and calculates the great-circle distance between them.</wsdl:documentation>
  36. <wsdl:input message="tns:gcdDoublesRequest" name="gcdDoublesRequest" />
  37. <wsdl:output message="tns:gcdDoublesResponse" name="gcdDoublesResponse" />
  38. </wsdl:operation>
  39. <wsdl:operation name="gcdXml"><wsdl:documentation>Takes an XML argument describing two points of {longitude,latitude} and calculates the great-circle distance between them.</wsdl:documentation>
  40. <wsdl:input message="tns:gcdXmlRequest" name="gcdXmlRequest" />
  41. <wsdl:output message="tns:gcdXmlResponse" name="gcdXmlResponse" />
  42. </wsdl:operation>
  43. </wsdl:portType>
  44. <wsdl:binding name="gcdBinding" type="tns:gcdPortType"><soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
  45. <wsdl:operation name="gcdDoubles"><soap:operation soapAction="" style="rpc" />
  46. <wsdl:input><soap:body use="encoded" namespace="http://bowstreet.com/2002/03/models/xmethods/gcd" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
  47. </wsdl:input>
  48. <wsdl:output><soap:body use="encoded" namespace="http://bowstreet.com/2002/03/models/xmethods/gcd" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
  49. </wsdl:output>
  50. </wsdl:operation>
  51. <wsdl:operation name="gcdXml"><soap:operation soapAction="" style="rpc" />
  52. <wsdl:input><soap:body use="encoded" namespace="http://bowstreet.com/2002/03/models/xmethods/gcd" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
  53. </wsdl:input>
  54. <wsdl:output><soap:body use="encoded" namespace="http://bowstreet.com/2002/03/models/xmethods/gcd" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
  55. </wsdl:output>
  56. </wsdl:operation>
  57. </wsdl:binding>
  58. <wsdl:service name="gcd"><wsdl:port name="gcdSoap" binding="tns:gcdBinding"><soap:address location="http://207.3.149.30/bowstreet5/webengine/SOAP" />
  59. </wsdl:port>
  60. </wsdl:service>
  61. </wsdl:definitions>
  62.